package cn.ex.basic.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: ZeWangmu
 * @Date: 2022/06/01/13:15
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BasicQuery {

    private Integer pageSize = 5;
    private  Integer currentPage = 1;
    //高级查询字段(关键字查询)
    private String keyword;

    public Integer getStart(){
        return (this.currentPage-1) * this.pageSize;
    }


}
